// pages/profile/profile.scss
.profile-container {
  min-height: 100vh;
  background: #f5f5f5;
}

/* 自定义导航栏 */
.custom-nav {
  background: white;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
  
  .nav-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 88rpx;
    padding: 0 30rpx;
  }
  
  .nav-title {
    font-size: 36rpx;
    font-weight: 600;
    color: #333;
  }
}

.main-content {
  padding: 20rpx;
  // padding-top 在 WXML 中动态设置，考虑状态栏高度
}

/* 用户信息卡片 */
.user-card {
  background: white;
  padding: 32rpx;
  border-radius: 20rpx;
  margin-bottom: 24rpx;
  box-shadow: 0 2rpx 16rpx rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  
  &:active {
    transform: scale(0.98);
  }
  
  .user-info {
    display: flex;
    align-items: center;
    gap: 30rpx;
    position: relative;
    
    .avatar-wrapper {
      position: relative;
      flex-shrink: 0;
      
      .avatar {
        width: 120rpx;
        height: 120rpx;
        border-radius: 60rpx;
        border: 2rpx solid #e0e0e0;
      }
    }
    
    .info-section {
      flex: 1;
      min-width: 0;
      
      .name-row {
        display: flex;
        align-items: center;
        gap: 15rpx;
        margin-bottom: 15rpx;
        
        .user-name {
          font-size: 36rpx;
          font-weight: 600;
          color: #333;
        }
        
        .verify-badge {
          display: flex;
          align-items: center;
          gap: 8rpx;
          background: #5cb85c;
          padding: 6rpx 16rpx;
          border-radius: 20rpx;
          
          image {
            width: 24rpx;
            height: 24rpx;
          }
          
          text {
            font-size: 22rpx;
            color: white;
          }
        }
      }
      
      .info-row {
        display: flex;
        align-items: center;
        gap: 16rpx;
        margin-bottom: 10rpx;

        &:last-child {
          margin-bottom: 0;
        }

        .info-label {
          min-width: 120rpx;
          font-size: 26rpx;
          color: #666;
        }

        .info-value {
          flex: 1;
          font-size: 26rpx;
          color: #333;
          word-break: break-all;
        }
      }
    }
    
    .arrow-right {
      width: 24rpx;
      height: 24rpx;
      opacity: 0.3;
      flex-shrink: 0;
      margin-left: 10rpx;
    }
  }
}

/* 通知提醒 */
.notice-banner {
  display: flex;
  align-items: center;
  gap: 20rpx;
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8f4 100%);
  padding: 28rpx 32rpx;
  margin-bottom: 24rpx;
  border-radius: 20rpx;
  box-shadow: 0 2rpx 16rpx rgba(0, 0, 0, 0.06);
  border: 1rpx solid #d4edda;
  
  .notice-icon {
    width: 32rpx;
    height: 32rpx;
    flex-shrink: 0;
  }
  
  .notice-text {
    flex: 1;
    font-size: 26rpx;
    color: #333;
    line-height: 1.5;
    
    .link-text {
      color: #5cb85c;
    }
  }
}


/* 菜单区域 */
.menu-section {
  background: white;
  margin-bottom: 24rpx;
  border-radius: 20rpx;
  padding: 32rpx;
  box-shadow: 0 2rpx 16rpx rgba(0, 0, 0, 0.06);
  
  .section-header {
    font-size: 30rpx;
    font-weight: 600;
    color: #333;
    margin-bottom: 20rpx;
  }
  
  .menu-list {
    .menu-item {
      display: flex;
      align-items: center;
      padding: 28rpx 0;
      border-bottom: 1rpx solid #f5f7fa;
      transition: all 0.2s ease;
      
      &:last-child {
        border-bottom: none;
        padding-bottom: 0;
      }
      
      &:first-child {
        padding-top: 0;
      }
      
      &:active {
        opacity: 0.6;
      }
      
      .menu-icon {
        width: 48rpx;
        height: 48rpx;
        margin-right: 25rpx;
      }
      
      .menu-text {
        flex: 1;
        font-size: 30rpx;
        color: #333;
      }
      
      .menu-arrow {
        width: 24rpx;
        height: 24rpx;
        opacity: 0.3;
      }
    }
  }
}

/* 退出登录区域 */
.logout-section {
  padding: 20rpx 0 40rpx 0;
  
  .logout-btn {
    width: 100%;
    background: linear-gradient(135deg, #ff4757 0%, #ff6b7a 100%);
    color: white;
    border-radius: 20rpx;
    padding: 32rpx;
    font-size: 32rpx;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15rpx;
    box-shadow: 0 4rpx 16rpx rgba(255, 71, 87, 0.3);
    transition: all 0.3s ease;
    
    &::after {
      border: none;
    }
    
    &:active {
      transform: scale(0.98);
      box-shadow: 0 2rpx 12rpx rgba(255, 71, 87, 0.2);
    }
    
    .logout-icon {
      width: 40rpx;
      height: 40rpx;
    }
  }

  .delete-account-btn {
    width: 100%;
    background: #fff;
    color: #ff5252;
    border: 2rpx solid #ff5252;
    border-radius: 20rpx;
    padding: 32rpx;
    font-size: 28rpx;
    font-weight: 500;
    margin-top: 24rpx;
    transition: all 0.3s ease;
    
    &::after {
      border: none;
    }
    
    &:active {
      background: #fff5f5;
      transform: scale(0.98);
    }
  }
}
